/*  Jaddas Service Node 
 *  by Matt Garner (matt@mattgarner.com)
 *  
 */



import com.mattgarner.jaddas.node.DataSetManager;
import com.mattgarner.jaddas.node.ErrorLogManager;
import com.mattgarner.jaddas.node.LocalDataProvider;
import com.mattgarner.jaddas.node.net.Server;

public class JaddasNode {

	private static JaddasNode instance;
	
 	public static void main(String[] args) {
 		instance = new JaddasNode();
 		
 		////////////////////////////////
 		// initialize sub systems
 		////////////////////////////////
 		
 		// logging manager
 		ErrorLogManager logManager = ErrorLogManager.getInstance();
 		logManager.writeToLog(1, "SYS", "System Initialized.");
 		
 		// local database manager
 		LocalDataProvider.getInstance();
 		
 		// dataset manager
 		DataSetManager.getInstance();
		
 		/////////////
 		
		// start a thread to listen for new connections
		(new Thread(new Server())).start();
	}

 	public void JaddasNode() {

 	}
 	
}
